<template>
  <div class="headers">
    <!-- <div class="headers" :style="{backgroundImage:'url(\''+graphic.imgherf+'\')'}"> -->
    <div class="navtap">
      <div class="tap-left">
        <div><img src="@/assets/imgs/badge.png" alt="" /></div>
        <div class="tap-title" style="">军事科学院研究生院</div>
      </div>
      <div class="tap-right">
        <div class="login">
          <a href="javascript:;">咨询答疑</a>
          <a href="javascript:;">网站信箱</a>
          <a href="javascript:;">
            <img src="@/assets/icons/search.png" alt="" class="icons" />
          </a>
          <a href="javascript:;">|</a>
          <a href="javascript:;" @click="loginShow = true">登录/注册</a>
        </div>
        <div class="navber">
          <a href="/">首页</a>
          <a href="/overview">院部概况</a>
          <a href="/admissions">招生工作</a>
          <a href="/nourish">培养工作</a>
          <a href="/construction">学科建设</a>
          <a href="/innovation">创新工作</a>
          <a href="/education">思政教育</a>
          <a href="/studysky">学习天地</a>
          <a href="/callme">联系我们</a>
        </div>
      </div>
      <div class="top-text">
        <div class="title">{{ graphic.title }}</div>
        <div class="coild"></div>
        <div class="text">
          {{ graphic.text }}
        </div>
      </div>
    </div>
    <el-dialog :visible.sync="loginShow" width="720px" close="dialog">
      <el-tabs v-model="activeName">
        <el-tab-pane label="账号登录" name="first">
          <div class="login-form">
            <el-input
              placeholder="请输入您的手机号"
              style="margin-top: 20px"
            ></el-input>
            <el-input placeholder="请输入您的密码" show-password></el-input>
            <div class="code">
              <el-input placeholder="请输入验证码"></el-input>
              <div class="code-img"></div>
              <a href="javascript:;" class="refresh">刷新</a>
            </div>

            <div class="forget"><a href="javascript:;">忘记密码？</a></div>
            <button class="login">登录</button>
            <a href="/login" class="text">立即注册</a>
          </div>
        </el-tab-pane>
        <el-tab-pane label="短信登录" name="second">
          <div class="short">
            <div class="">
              <el-input placeholder="请输入您的手机号" style="margin-top:20px;"></el-input>
            </div>
            <div class="phone">
              <el-input placeholder="请输入验证码" ></el-input>
              <button class="obtain">获取验证码</button>
            </div>
            <button class="login">登录</button>
            <a href="/login" class="text">立即注册</a>
          </div>
        </el-tab-pane>
      </el-tabs>
    </el-dialog>
  </div>
</template>

<script>
export default {
  name: "headers",
  props: ["graphic"],
  data() {
    return { loginShow: false, activeName: 'second' }
  },
  components: {},
  created() {},
  methods: {},
};
</script>

<style lang="less" scoped>
.headers {
  width: 100%;
  height: 690px;
  background: url(~@/assets/imgs/background2.png) no-repeat center;
  background-size: 100% 100%;
  .navtap {
    display: flex;
    justify-content: space-between;
    padding-right: 80px;
    height: 140px;
    background: linear-gradient(#000, transparent);
    overflow: hidden;
    .tap-left {
      display: flex;
      img {
        width: 77px;
        height: 78px;
        margin: 24px 0 0 50px;
      }
    }
    .tap-title {
      width: 300px;
      height: 32px;
      font-family: Source Han Sans CN;
      font-weight: 700;
      color: #ffffff;
      font-size: 32px;
      line-height: 32px;
      margin: 46px 0 0 20px;
    }
    .tap-right {
      .login {
        line-height: 28px;
        padding-top: 30px;
        display: flex;
        justify-content: flex-end;
        a {
          margin-left: 19px;
          font-size: 14px;
        }
        .icons {
          width: 24px;
          height: 24px;
        }
      }
      .navber {
        margin-top: 10px;
        a {
          margin-left: 19px;
          font-size: 22px;
        }
      }
    }
  }
  .top-text {
    padding: 426px 0 0 170px;
    height: 100%;
    margin-top: -140px;
    background: linear-gradient(
      transparent,
      transparent,
      transparent,
      transparent,
      #000
    );
    .coild {
      width: 140px;
      height: 5px;
      background-color: #b21315;
      margin: 10px 0 25px;
    }
    .text {
      width: 620px;
      font-weight: 700;
      color: #ffffff;
      line-height: 30px;
      font-size: 18px;
    }
    .title {
      font-weight: 700;
      color: #ffffff;
      font-size: 60px;
    }
  }
}
/deep/.el-tabs__item {
  font-weight: 700;
  color: #000000;
  font-size: 20px;
}
/deep/.el-tabs__item:hover {
  color: #dd1d20;
}
/deep/.el-tabs__item.is-active {
  color: #dd1d20;
}
/deep/.el-tabs__active-bar {
  background: #dd1d20;
}
/deep/.el-tabs__nav-wrap::after {
  display: none;
}
/deep/.el-input__inner:focus {
  border-color: #dd1d20;
  outline: 0;
}
.login-form {
  padding: 0 80px 0 80px;

  /deep/.el-input__inner {
    font-size: 20px;
    margin-bottom: 20px;
    width: 520px;
    height: 50px;
    background-color: #ffffff;
    border-radius: 5px;
    box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.16);
  }
  .code {
    display: flex;
    position: relative;
    .el-input {
      width: 300px;
    }
    /deep/.el-input__inner {
      margin-bottom: 20px;
      width: 300px;
      height: 50px;
      background-color: #ffffff;
      border-radius: 5px;
      box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.16);
    }
    .code-img {
      width: 200px;
      height: 50px;
      border: 1px solid #000;
      border-radius: 5px;
      box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.16);
      margin-left: 20px;
    }
    .refresh {
      position: absolute;
      right: -40px;
      top: 15px;
      color: #b21315;
      font-size: 14px;
    }
  }
  .forget {
    a {
      color: #b21315;
      font-size: 14px;
      font-weight: 700;
    }
  }
  .login {
    font-weight: 700;
    margin: 50px 0 40px 100px;
    color: #ffffff;
    font-size: 22px;
    width: 328px;
    height: 56px;
    background-color: #b21315;
    border-radius: 33px;
    text-align: center;
    outline: none;
    border: none;
  }
  .text {
    color: #333333;
    font-size: 22px;
    line-height: 18px;
    display: block;
    text-align: right;
    margin-right: -60px;
  }
}
.short {
  padding: 0 80px 0 80px;
  /deep/.el-input__inner {
    font-size: 20px;
    margin-bottom: 20px;
    width: 520px;
    height: 50px;
    background-color: #ffffff;
    border-radius: 5px;
    box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.16);
  }
  .phone {
    .el-input {
      width: 300px;
    }
    /deep/.el-input__inner {
      margin-bottom: 20px;
      width: 300px;
      height: 50px;
      background-color: #ffffff;
      border-radius: 5px;
      box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.16);
    }
  }
  .obtain {
    width: 200px;
    margin-left: 20px;
    height: 50px;
    background-color: #b21315;
    border-radius: 5px;
    box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.16);
    text-align: center;
    outline: none;
    border: none;
    color: #ffffff;
    font-size: 20px;
  }
  .login {
    font-weight: 700;
    margin: 50px 0 40px 100px;
    color: #ffffff;
    font-size: 22px;
    width: 328px;
    height: 56px;
    background-color: #b21315;
    border-radius: 33px;
    text-align: center;
    outline: none;
    border: none;
  }
  .text {
    color: #333333;
    font-size: 22px;
    line-height: 18px;
    display: block;
    text-align: right;
    margin-right: -60px;
  }
}
</style>
